package domain;

import java.util.Date;
import java.util.Set;

import org.apache.struts.action.ActionForm;

public class Article extends ActionForm{
	private int id;
	private String title;
	private String author="";
	private String orgin;
	private int readCount=0;
	private Date createtime=new Date();
	private String content;
	private ArticleType articleType;
	private Set<ArticleComment> articleComments;
	
	public Article(){
	}
	
	public Article(int id, String title, ArticleType articleType,
			String author, Date createtime, String orgin, int readCount,
			String content) {
		this.id = id;
		this.title = title;
		this.articleType = articleType;
		this.author = author;
		this.createtime = createtime;
		this.orgin = orgin;
		this.readCount = readCount;
		this.content = content;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getOrgin() {
		return orgin;
	}
	public void setOrgin(String orgin) {
		this.orgin = orgin;
	}
	public int getReadCount() {
		return readCount;
	}
	public void setReadCount(int readCount) {
		this.readCount = readCount;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public ArticleType getArticleType() {
		return articleType;
	}
	public void setArticleType(ArticleType articleType) {
		this.articleType = articleType;
	}
	public Set<ArticleComment> getArticleComments() {
		return articleComments;
	}
	public void setArticleComments(Set<ArticleComment> articleComments) {
		this.articleComments = articleComments;
	}
	

	
}
